#ifndef SPLITLIGHTMACHINEVIEWDIALOG_H
#define SPLITLIGHTMACHINEVIEWDIALOG_H

#include <QDialog>
#include <QList>
#include <list>
#include "splitlightmachineviewinfo.h"
#include "device.h"
#include "devicedao.h"
#include <QPushButton>

class SplitLightMachineViewInfoDialog : public QDialog
{
    Q_OBJECT
public:
    explicit SplitLightMachineViewInfoDialog(QWidget *parent = 0, int id = -1, const QString &text = "");
    ~SplitLightMachineViewInfoDialog();
    void initSplitLightMachineViewInfoDialog();
    void deleteDevice();
    void updateDevice();
    bool isSelected();
    bool validSlmRate(QString str);
signals:

public slots:
    void on_updateButton_clicked();
    void on_deleteButton_clicked();
private:
    SplitLightMachineViewInfo_Dialog *splitLightMachineViewInfoDialog;
    //MainWindow *mainWindow;
    //zhengfeng add begin
    QString selectedName;
    int selectedId;
    //zhengfeng add end

};

#endif // SPLITLIGHTMACHINEVIEWDIALOG_H
